/**
 * Created by WebStorm.
 * User: YD
 *Email:yedong_163_hubei@163.com
 * Date: 2017/10/17
 * Time: 10:58
 *CopyRight:上海横方信息技术有限公司版权所有
 */
var logger = require('../../config/logger.js').logger('logInfo');
var connection=require("../mysql.js");
module.exports={
   user_find:function(userName){
       var sql="select * from fs_login where user_name='"+userName+"'";
       connection.query(sql,function(err,res,filed){
              if(err){
                logger.error(err);
                  var data={code:0,data:err};
                return data;
              }else{
                  var data={code:1,data:res};
                  console.log(22222222222222222222222);
                  console.log(data);
                return data;
              }
        });
   }
}
